package org.example.springioc.V1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 九转苍翎
 * Date: 2025/9/27
 * Time: 13:20
 */
class Car{
    protected Framework framework;
    public Car(){
        framework = new Framework();
        System.out.println("car init");
    }
    public void run() {
        System.out.println("car run");
    }
}

class Framework{
    protected Bottom bottom;
    public Framework(){
        bottom = new Bottom();
        System.out.println("framework init");
    }
}

class Bottom{
    protected Tire tire;
    public Bottom(){
        tire = new Tire();
        System.out.println("bottom init");
    }
}

class Tire{
    public Tire(){
        System.out.println("tire init");
    }
}

public class Main {
    public static void main(String[] args) {
        Car car = new Car();
        car.run();
    }
}
